/*
 * CS_EVOLUTION_POINT_INFO.cpp
 *
 *  Created on: 2013. 6. 17.
 *      Author: mega@gamevil.com
 */

#include "../../Command.h"
#include "../../User.h"

namespace ProjectZ { namespace NCommand {

void Command::CS_EVOLUTION_POINT_INFO(User * pUser, ::Network::Packet * pPacket) {

	STRESSLOG("[CHANNEL] CS_EVOLUTION_POINT_INFO::ONEXECUTE");

	PREPARE_PACKET;

	int userSeq = 0;

	*pPacket >> userSeq;

	DEBUGLOG("CS_EVOLUTION_POINT_INFO : user_seq=%d", pUser->GetUserSeq());

	::Network::Packet * pAck = ::Network::GETPACKETPOOL()->SEND_NEW();

	*pAck << static_cast<int16_t>(ACK_OK);
	*pAck << static_cast<uint16_t>(pUser->GetCharacterInfo().ep_max);
	*pAck << static_cast<uint16_t>(pUser->GetCharacterInfo().ep_current);

	pAck->MakePacket(CMD_SC_EVOLUTION_POINT_INFO);
	pUser->Send(pAck);
}

} /*NCommand*/ } /*ProjectZ*/

